package com.cqu.lpss.controller;

import com.cqu.lpss.pojo.Result;
import com.cqu.lpss.service.impl.AuthoritiesImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/auth")
public class AuthoritiesController {
    @Autowired
    AuthoritiesImpl authoritiesImpl;
    @RequestMapping("/prof")
    public Result list_Prof(){
        return Result.success(authoritiesImpl.listProf());
    }
    @RequestMapping("/all")
    public Result list_All(){
        return Result.success(authoritiesImpl.listAll());
    }
}
